function showQrcode(productId, listType, categoryId, subCategoryId, dataFrom, distributorId, districtId){
	var path = "";
	if(listType == "ticketList"){
		path = "/pages/productDetail/productDetail?productId=" + productId + "&";
	}else if(listType == "hotelList"){
		path = "/pagesHotel/hotel/hotelDetail/hotelDetail?productId=" + productId + "&";
	}else if(listType == "localplayList"){
		//TODO 小程序不支持，暂时不做
	}else if(listType == "routeList"){
		if(dataFrom == "NS"){
			if(distributorId && (distributorId.indexOf("10001") != -1 || distributorId.indexOf("10002") != -1)){
				if(categoryId == 18){
					path = "https://m.lvmama.com/vacations/m/vacation/" + productId + "?isSpecial=NS&";
				}else if(categoryId == 15){
					path = "https://m.lvmama.com/vacations/m/tour/" + productId + "?isSpecial=NS&";
				}else if(categoryId == 16){
					path = "https://m.lvmama.com/vacations/m/localtour/" + productId + "?isSpecial=NS&";
				}
			}else{
				if(categoryId == 18){
					path = "https://m.lvmama.com/vacations/m/vacation/" + productId + "?";
				}else if(categoryId == 15){
					path = "https://m.lvmama.com/vacations/m/tour/" + productId + "?";
				}else if(categoryId == 16){
					path = "https://m.lvmama.com/vacations/m/localtour/" + productId + "?";
				}
			}
			
		}else{
			if(categoryId == 17 || subCategoryId == 181){
				path = "/pagesAround/around/productDetail/productDetail?productId=" + productId + "&";
			}else{
				path = "https://m.lvmama.com/product/" + productId + "?";
			}
			//团购、秒杀
			if(distributorId && distributorId.indexOf("10001") != -1){
				path = "https://m.lvmama.com/tuan/product-" + productId + "/f" + (districtId?districtId:"") + "?";
			}else if(distributorId && distributorId.indexOf("10002") != -1){
				path = "https://m.lvmama.com/tuan/seckill/product-" + productId + "/f" + (districtId?districtId:"") + "?";
			}
		}
	}
	var scene = path + "utm_source=pc&utm_medium=" + listType;
	console.log(scene);
	var encodeScene = encodeURIComponent(scene);
	//console.log(encodeScene);
	$.ajax({
	    url: "https://weixin.lvmama.com/xcxQrCode/getBase64",
	    type: "get",
	    dataType:"jsonp",
	    jsonp: "callback",
	    data: {
	        "scene":encodeScene,
			"type":"path_custom"
	    },
	    success:function(data){
		    console.log(data);
	        $(".poptip-minicode").find("img").attr("src", "data:image/png;base64," + data.data.base64Str);
	    },
	    error:function(data){
	        console.log(data);
	    }
	});
}
